package com.lyc.heihei;
//写一个计算器，要求实现加减乘除功能

import java.util.Scanner;

public class Demo02 {
    Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {

        double result = add(3,5);
        double result2 = add2(5,3);
        double result3 = add3(3,5);
        double result4 = add4(5,3);
        System.out.println(result);
        System.out.println(result2);
        System.out.println(result3);
        System.out.println(result4);

    }

    public static double add(double a,double b){
        return a+b;
    }
    public static double add2(double c,double d){
        return c-d;
    }
    public static double add3(double e,double f){
        return e*f;
    }
    public static double add4(double g,double h){
        return g/h;
    }
}
